//
//  MainFirst_Magazine_TBV_TitleCell_WX.m
//  ZITHER
//
//  Created by weixin on 2018/10/18.
//  Copyright © 2018年 weixn. All rights reserved.
//

#import "MainFirst_Magazine_TBV_TitleCell_WX.h"

@implementation MainFirst_Magazine_TBV_TitleCell_WX

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self addSubview:self.title];
    [self.title mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self).offset(13);
        make.left.equalTo(self).offset(14);
        make.right.equalTo(self).offset(-14);
        make.bottom.equalTo(self).offset(-15);
    }];
}

-(void)setModel:(HomePageDetailModelpgcJson *)model{
    _model = model;
    
    [self.title setLineSpacingText:model.text lineSpacing:12.5];
}

-(BaseLab *)title{
    if (!_title) {
        _title = [[BaseLab alloc]initializeFrame:CGRectMake(0, 0, 1, 1) text:@"" font:14 textColor:nil isBold:NO numberOfLines:0];
        _title.font = [UIFont fontWithName:@"PingFangSC" size:14];
        _title.textColor = [UIColor RGBColorWithR:51 g:51 b:51];
    }
    return _title;
}

@end
